package com.colorlight.cloud.gateway.core.message.instruct;

import com.colorlight.cloud.gateway.api.message.instruct.api.MessageLiteInfo;
import com.iot.proto.gateway.Gateway;
import com.google.protobuf.MessageLite;
import org.springframework.stereotype.Component;

/**
 * @author Demon
 * @date 7/8/2023  下午2:22
 */
@Component
public class MessageLiteInfoImpl implements MessageLiteInfo {
	
	@Override
	public Long getMessageLiteSeqId(MessageLite messageLite) {
		Gateway.Msg msg = (Gateway.Msg) messageLite;
		return msg.getSeqId();
	}
}
